package edu.ntu.cloudroid.server;

public class AccessPolicies {
	public static enum Policy{
		SimpleFilteringPrivacyPreference, 
		SimpleGranualityPrivacyPreference,
		SimpleSimilaryPrivacyPreference,
		SimpleSummaryPrivacyPreference
	}
	
	public static enum Builder{
		SimpleFilteringPolicyBuilder,
		SimpleGranualityPolicyBuilder,
		SimpleSimilarityPolicyBuilder,
		SimpleSummaryPolicyBuilder
	}
	public static Object getPrivacyPreferenceObject(int id) throws Exception{
		Class cl = Class.forName("edu.ntu.cloudroid.model."+Policy.values()[id].name());		
		return cl.newInstance();
	}
	
	public static Class getPrivacyPreferenceClass(int id) throws Exception{
		return Class.forName("edu.ntu.cloudroid.model."+Policy.values()[id].name());
	}
		
}
